﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using University.Workshop.Presenters;
using University.Workshop.Model;
using System.Collections.ObjectModel;

namespace University.Workshop.Tests.Mocks
{
    public class SaleMock:ISale
    {
        #region IMembers Sale
        public string SaleCode
        {
            get;
            set;
        }
        public string ClientCode
        {
            get;
            set;
        }
        public string UserCode
        {
            get;
            set;
        }
        public DateTime DateSale
        {
            get;
            set;
        }
        public string TotalAmount
        {
            get;
            set;
        }
        public string Message
        {
            get;
            set;
        }
        public Collection<SaleDetail> ListOfProducts
        {
            get;
            set;
        }
        public string CodeProduct
        {
            get;
            set;
        }
        public string Quantity
        {
            get;
            set;
        }
        public string StockQuantity
        {
            get;
            set;
        }
        public string UnitPrice
        {
            get;
            set;
        }
        #endregion

        #region IMembers Sale
        public void SaleRegister()
        {
            SaleCode = "3000";
            DateSale = DateTime.Now;
            UserCode = "1";
            ClientCode = "101010";
            TotalAmount = "50";
            SaleDetail saleDetail = new SaleDetail();
            saleDetail.CodeSale="3000";
            saleDetail.CodeProduct="med003";
            saleDetail.UnitPrice = 50;
            saleDetail.TotalPrice = 50;
            saleDetail.Quantity=1;
            ListOfProducts.Add(saleDetail);
        }
        #endregion

    }
}
